<?
//用来提供给后台删除数据用的函数。
//筛选需要对比的是否有更新上传文件的项目进来

function  select_image_row($table,$id)
{
    $sql_query = "SELECT * FROM $table WHERE nid = '$id' ";
    $result_query = mysql_query($sql_query);
    while ($row = mysql_fetch_array($result_query))
    {
        $tempdata2['image1'] = $row['image1'];
        $tempdata2['image2'] = $row['image2'];
        $tempdata2['image3'] = $row['image3'];
        $tempdata2['image4'] = $row['image4'];
        $tempdata2['image5'] = $row['image5'];
        $tempdata2['image6'] = $row['image6'];
        $tempdata2['image7'] = $row['image7'];
        $tempdata2['image8'] = $row['image8'];
        $tempdata2['image9'] = $row['image9'];
        $tempdata2['image10'] = $row['image10'];
        $tempdata2['icon'] = $row['icon'];
        $tempdata2['banner'] = $row['banner'];
        $tempdata2['attachment'] = $row['attachment'];
        $tempdata2['extend_img'] = $row['extend_img'];

    }

return $tempdata2 ;

 }



?>